package 设计模式.建造者模式;

/**
 * @description:
 * @author: asd
 * @time: 2022/11/21 22:52
 */
public class MacComputerBuilder extends ComputerBuilder {
    private Computer computer;
    public MacComputerBuilder(String cpu, String ram) {
        computer = new Computer(cpu, ram);
    }
    @Override
    public void setUsbCount() {
        computer.setUsbCount(2);
    }
    @Override
    public void setKeyboard() {
        computer.setKeyboard("苹果键盘");
    }

    @Override
    public void setMouse() {
        computer.setMouse("苹果鼠标");
    }

    @Override
    public Computer getComputer() {
        return computer;
    }
}
